package models

import "gorm.io/gorm"

type ToolCategory struct {
	gorm.Model
	Name        string `gorm:"size:100;not null"`
	Slug        string `gorm:"size:100;uniqueIndex"`
	Description string `gorm:"size:255"`
	IsActive    bool   `gorm:"default:true"`
	SEO         SEO    `gorm:"embedded"`
	Tools       []ToolItem
}

type SEO struct {
	MetaTitle       string `gorm:"size:60"`
	MetaDescription string `gorm:"size:160"`
	CanonicalURL    string `gorm:"size:255"`
}
